package lab02.test25;

import java.util.Scanner;

/**
 * Created by 婷婷 on 2017/11/13.
 */
public class Test25 {
    public static void main(String[] args) {
        System.out.println("请输入除数：");
        try {
            Scanner num = new Scanner(System.in);

            int divisor = num.nextInt();
            System.out.println("请输入被除数：");
            int dividend = num.nextInt();

            float merchant = dividend/divisor;
            System.out.println(+merchant);
        }catch (ArithmeticException e){
            System.out.println("除数为0，您输入的数据错误！");
        }

    }
}
